package cn.lili.modules.goods.client;

import cn.lili.modules.constant.ServiceConstant;
import cn.lili.modules.goods.fallback.GoodsGrabFallback;
import cn.lili.modules.grab.entity.dto.GoodsGrabReqParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@Service
@FeignClient(path = "${server.servlet.context-path}",
        name = ServiceConstant.GOODS_SERVICE, contextId = "goodsGrab",
        fallback = GoodsGrabFallback.class)
public interface GoodsGrabClient {

    /**
     * 商品采集
     *
     */
    @PostMapping("/feign/goodsGrab/start")
    void startGoodsGrab(@RequestBody GoodsGrabReqParam goodsGrabReqParam);

}
